package com.study.entity;  

import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

/**  
 *  实体类
 */  
public class PaymentBill  
{  
    /********** 实体的属性 ***********/  
     //主键 自增
    private int id;
    private String name;  //缴费单名称
    private String cost;  //费用
    private String building;  //几栋
    private String houseNum;  //门牌号
	@DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createTime;  //创建日期
    private int state;  //处理
    private String remark;  //备注
    /********** 构造方法 ***********/  
    public PaymentBill() {  
      
    }  
  
    public PaymentBill(String name, String cost, String building, String houseNum, Date createTime, int state, String remark) {  
        this.name = name;  
        this.cost = cost;  
        this.building = building;  
        this.houseNum = houseNum;  
        this.createTime = createTime;  
        this.state = state;  
        this.remark = remark;  
    }  
  
    /********** get/set 方法 ***********/  
    
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getName() {  
        return name;  
    }  
  
    public void setName(String name) {  
        this.name = name;  
    }
    
      
    public String getCost() {  
        return cost;  
    }  
  
    public void setCost(String cost) {  
        this.cost = cost;  
    }
    
      
    public String getBuilding() {  
        return building;  
    }  
  
    public void setBuilding(String building) {  
        this.building = building;  
    }
    
      
    public String getHouseNum() {  
        return houseNum;  
    }  
  
    public void setHouseNum(String houseNum) {  
        this.houseNum = houseNum;  
    }
    
      
    public Date getCreateTime() {  
        return createTime;  
    }  
  
    public void setCreateTime(Date createTime) {  
        this.createTime = createTime;  
    }
    
      
    public int getState() {  
        return state;  
    }  
  
    public void setState(int state) {  
        this.state = state;  
    }
    
      
    public String getRemark() {  
        return remark;  
    }  
  
    public void setRemark(String remark) {  
        this.remark = remark;  
    }
    
      

	@Override
	public String toString() {
		return "PaymentBill [id=" + id 
				+ ", name=" + name
				+ ", cost=" + cost
				+ ", building=" + building
				+ ", houseNum=" + houseNum
				+ ", createTime=" + createTime
				+ ", state=" + state
				+ ", remark=" + remark
				+ "]";
    }
}